<!DOCTYPE html>
	<html>
	<head>
		<title>{$gname} {$site_name} </title>
		<meta name="keywords" content="{$gname}" />
		<meta name="description" content="{$service}" />
		<tc_include file="Public:head" />
		<style>
			#article_content img{height:auto !important}
			#article_content {word-wrap: break-word;}
    		.btn {margin-top: 33px;}
		</style>
	</head>
<body class="">
<tc_include file="Public:nav" />
<div class="container tc-main">
<php>
$terms=sp_get_terms("ids:$item");
</php>

<ul class="breadcrumb">
    <li>当前位置:</li>
  <li><a href="__ROOT__">首页</a><span class="divider">/</span></li>
  <li class="active"><a href="{:leuu('jiazheng/gongsi/index',array('id'=>$terms[0]['term_id']))}">{$terms[0]['name']}</a><span class="divider">/</span></li>
 <li>公司详细页</li>
</ul>

	<div class="row">
		<div class="span9">
			
			<div class="tc-box first-box article-box">
		    	<h2>{$gname}</h2>
		    	<hr />
                <div class="clearfix row">
                
                <if condition="!empty($logo)">
                <img src="{$logo}" width="300" class="pull-left img-responsive span4" alt="{$gname}logo" />
                </if>
                <dl class="pull-left span3">
                <dt>公司名称</dt>
                <dd>{$gname}</dd>
                <dt>公司地址</dt>
                <dd>{$address|default=未留}</dd>
                <dt>公司注册时间</dt>
                <dd>{$createdate|date='Y年m月d日',###}</dd>
                <dt>联系方式</dt>
                <dd>{$gphone|default=未留}</dd>
                <dt>QQ</dt>
                <dd>{$qq|default=未留}</dd>
                <dt>微信</dt>
                <dd>{$weixin|default=未留}</dd>
                <dt>认证</dt>
                <dd></dd>
                
                <dd>永川家政公司已被浏览<font color=red>{$hits}</font>次</dd>
                </dl>
                
                </div>
		    	<hr>
		    	<div id="article_content">
                <h4>家政公司介绍</h4>
		    	{$resume}
		    	</div>
                <if condition="!empty($post_source)">
                    <div>
                        <b>注：本文转载自{$post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
                    </div>
    			</if>
		    	<div>
					<if condition="!empty($prev)">
					<a href="{:leuu('gongsi/info',array('id'=>$prev['id']))}" class="btn btn-primary pull-left">{$prev['gname']}</a>
					</if>
					<if condition="!empty($next)">
				    <a href="{:leuu('gongsi/info',array('id'=>$next['id']))}" class="btn btn-warning pull-right">{$next['gname']}</a>
					</if>
    	            <script type="text/javascript" src="__TMPL__Public/js/qrcode.min.js"></script>
                    <div id="qrcode" style="width: 100px;margin:0 auto"></div>
    					<script type="text/javascript">
                        var qrcode = new QRCode(document.getElementById("qrcode"), {
                        width : 100,
                        height : 100
                        });
                        function makeCode () {		
                        qrcode.makeCode("http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}");
                        }
                        makeCode();
                        </script>
					<div class="clearfix"></div>
				</div>
		    	
		    	{:Comments("posts",$object_id)}
		    </div>
		    
		    <php>$ad=sp_getad("portal_article_bottom");</php>
			<if condition="!empty($ad)">
        	<div class="tc-box">
	        	<div class="headtitle">
	        		<h2>赞助商</h2>
	        	</div>
	        	<div>
		        	{$ad}
		        </div>
			</div>
			</if>
		    
		</div>
		<div class="span3">
			<div class="tc-box first-box">
				<div class="headtitle">
	          		<h2>分享</h2>
	          	</div>
	          	<div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a></div>
<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"2","bdSize":"32"},"share":{},"image":{"viewList":["weixin","tsina","qzone","tqq","renren"],"viewText":"分享到：","viewSize":"32"},"selectShare":{"bdContainerClass":null,"bdSelectMiniList":["weixin","tsina","qzone","tqq","renren"]}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
        	</div>
        	
        	<div class="tc-box">
	        	<div class="headtitle">
	        		<h2>热度排行</h2>
	        	</div>
	        	<div class="ranking">
	        		<php>
						$hot_articles=sp_sql_gongsi("field:gname,id,smeta;order:hits desc;limit:5;cid:$item;"); 
					</php>
		        	<ul class="unstyled">
		        		<foreach name="hot_articles" item="vo">
		        			<php>$top=$key<3?"class='top3'":"";</php>
							<li {$top}><i>{$key+1}</i><a title="{$vo.post_title}" href="{:leuu('gongsi/info',array('id'=>$vo['id']))}">{$vo.gname}</a></li>
						</foreach>
					</ul>
				</div>
			</div>
			
			<div class="tc-box">
	        	<div class="headtitle">
	        		<h2>最新加入</h2>
	        	</div>
	        	<php>
	        	$last_users=sp_get_users("field:*;limit:0,8;order:create_time desc;");
	        	</php>
	        	<ul class="list-unstyled tc-photos margin-bottom-30">
	        		<foreach name="last_users" item="vo">
                    <li>
	                    <a href="{:leuu('user/index/index',array('id'=>$vo['id']))}">
	                    <img alt="" src="{:U('user/public/avatar',array('id'=>$vo['id']))}">
	                    </a>
                    </li>
                    </foreach>
                </ul>
			</div>
			
			<div class="tc-box">
	        	<div class="headtitle">
	        		<h2>最新入驻家政公司</h2>
	        	</div>
	        	<div class="ranking">
	        		<php>
						$hot_articles=sp_sql_gongsi("field:gname,id,smeta;order:id desc;limit:5;cid:$item;"); 
					</php>
		        	<ul class="unstyled">
		        		<foreach name="hot_articles" item="vo">
		        			<php>$top=$key<3?"class='top3'":"";</php>
							<li {$top}><i>{$key+1}</i><a title="{$vo.post_title}" href="{:leuu('/jiazheng/gongsi/info',array('id'=>$vo['id']))}">{$vo.gname}</a></li>
						</foreach>
					</ul>
				</div>
			</div>
        	
		</div>
		
	</div>
              
<tc_include file="Public:footer"/>
</div>

<tc_include file="Public:scripts"/>
</body>
</html>